<template>
    <div class="detail">
    <h1>{{news.title}}</h1>
    <img :src="news.imgsrc" alt=""/>
    <span>{{news.title}}</span>
    <h1>newsDetialhome</h1>
    </div>
</template>
<script>
export default {
    data(){
        return {
            news: {}
        }
    },
    created (){
    },
    mounted(){
    },
    computed: {
        doneTodosCount () {
            this.news = this.$store.getters.getNewsById(this.$route.params.docid)
            console.log(this.news)
        }
    },
    methods: {
        loadData(){
            
        }
    }
}
</script>
<style scoped>
    .detail{
        margin: 60px 0px;
    }
</style>